x11: Export gdk_x11_surface_get_root_coords privately
authorMatthias Clasen <mclasen@redhat.com>
Sun, 23 Feb 2020 00:09:18 +0000 (19:09 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 23 Feb 2020 00:10:16 +0000 (19:10 -0500)
This lets us avoid a roundtrip through the surface vfuncs.

gdk/x11/gdkprivate-x11.h
gdk/x11/gdksurface-x11.c

index 0f8ca877654e3cdd10c38833192e24e4ec78726d..69a1248b8aa68709305d2ea8681f346f9f7ba515 100644 (file)
@@ -230,6 +230,12 @@ GdkDrag        * _gdk_x11_surface_drag_begin (GdkSurface          *window,
                                               gint                dx,
                                               gint                dy);
 
+void gdk_x11_surface_get_root_coords (GdkSurface *surface,
+                                      gint        x,
+                                      gint        y,
+                                      gint       *root_x,
+                                      gint       *root_y);
+
 GdkGrabStatus _gdk_x11_convert_grab_status (gint status);
 
 cairo_surface_t * _gdk_x11_display_create_bitmap_surface (GdkDisplay *display,
index 7c4ce1199edc0d2d09846b275e9a15515169a2e8..8d052e9d3d851171c9caaac91c5ae0e9c4791ffb 100644 (file)
@@ -2402,7 +2402,7 @@ gdk_x11_surface_get_geometry (GdkSurface *surface,
     }
 }
 
-static void
+void
 gdk_x11_surface_get_root_coords (GdkSurface *surface,
                                gint       x,
                                gint       y,